package BeheerFysiotherapeuten.View;

import java.awt.event.ActionListener;


public class TherapeutPopup extends javax.swing.JFrame {
	private javax.swing.JTextField AchternaamField;
	private javax.swing.JTextField AdresField;

	private javax.swing.JComboBox BeginDagField;
	private javax.swing.JComboBox BeginJaarField;
	private javax.swing.JComboBox BeginMaandField;
	private javax.swing.JComboBox DagField;
	private javax.swing.JComboBox GeslachtField;
	private javax.swing.JComboBox JaarField;
	private javax.swing.JComboBox MaandField;
	private javax.swing.JButton nieuwannuleer;
	private javax.swing.JButton nieuwopslaan;
	private javax.swing.JButton wijzigannuleer;
	private javax.swing.JButton wijzigopslaan;
	private javax.swing.JButton verwijderja;
	private javax.swing.JButton verwijdernee;
	
	private javax.swing.JTextField PostcodeField;
	private javax.swing.JComboBox PraktijkField;
	private javax.swing.JTextField TelefoonNrField;
	private javax.swing.JTextField TussenvoegselField;
	private javax.swing.JTextField VoornaamField;
	private javax.swing.JTextField WoonplaatsField;
	private javax.swing.JTextField BsnField;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel12;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JLabel therapeutnaam;
	private javax.swing.JList jList1;
	private javax.swing.JScrollPane jScrollPane1;
	
	private String[] praktijken;
	private String[] dagen = new String[31];
	private String[] maanden = new String[12];
	private String[] jaren = new String[100];
	private String[] beginjaren = new String[5];

	public TherapeutPopup(String welke, String[] praktijken) {
		this.praktijken = praktijken;
		if (welke == "Nieuw") {
			initComponentsniew();

		} else if (welke == "Wijzig") {
			initComponentswijzigen();

		}

	}

	public TherapeutPopup() {
		initComponentsverwijder();

	}

	private void initComponentsniew() {

		jLabel1 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		VoornaamField = new javax.swing.JTextField();
		TussenvoegselField = new javax.swing.JTextField();
		AchternaamField = new javax.swing.JTextField();
		jScrollPane1 = new javax.swing.JScrollPane();
		jList1 = new javax.swing.JList();
		DagField = new javax.swing.JComboBox();
		MaandField = new javax.swing.JComboBox();
		JaarField = new javax.swing.JComboBox();
		GeslachtField = new javax.swing.JComboBox();
		WoonplaatsField = new javax.swing.JTextField();
		AdresField = new javax.swing.JTextField();
		PostcodeField = new javax.swing.JTextField();
		TelefoonNrField = new javax.swing.JTextField();
		BsnField = new javax.swing.JTextField();
		PraktijkField = new javax.swing.JComboBox();
		BeginDagField = new javax.swing.JComboBox();
		BeginMaandField = new javax.swing.JComboBox();
		BeginJaarField = new javax.swing.JComboBox();
		nieuwopslaan = new javax.swing.JButton();
		nieuwannuleer = new javax.swing.JButton();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		
		for (int i = 0; i < 31; i++) {
			dagen[i] = "" + (i + 1);
		}
		for (int i = 0; i < 12; i++) {
			maanden[i] = "" + (i + 1);
		}
		for (int i = 0; i < 100; i++) {
			jaren[i] = "" + (i + 1920);
		}
		for (int i = 0; i < 5; i++) {
			beginjaren[i] = "" + (i + 2011);
		}

		jLabel1.setText("Voornaam");

		jLabel2.setText("Tussenvoegsel");

		jLabel3.setText("Achternaam");

		jList1.setModel(new javax.swing.AbstractListModel() {
			String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4",
					"Item 5" };

			public int getSize() {
				return strings.length;
			}

			public Object getElementAt(int i) {
				return strings[i];
			}
		});

		jScrollPane1.setViewportView(jList1);

		DagField.setModel(new javax.swing.DefaultComboBoxModel(dagen));

		MaandField.setModel(new javax.swing.DefaultComboBoxModel(maanden));

		JaarField.setModel(new javax.swing.DefaultComboBoxModel(jaren));

		GeslachtField.setModel(new javax.swing.DefaultComboBoxModel(
				new String[] { "Man", "Vrouw" }));

		PraktijkField
				.setModel(new javax.swing.DefaultComboBoxModel(praktijken));

		BeginDagField.setModel(new javax.swing.DefaultComboBoxModel(dagen));

		BeginMaandField.setModel(new javax.swing.DefaultComboBoxModel(maanden));

		BeginJaarField
				.setModel(new javax.swing.DefaultComboBoxModel(beginjaren));

		nieuwopslaan.setText("Opslaan");
		nieuwopslaan.setActionCommand("nieuwopslaan");

		nieuwannuleer.setText("annuleer");
		nieuwannuleer.setActionCommand("nieuwannuleer");
		jLabel4.setText("Geboortedatum");

		jLabel5.setText("Geslacht");

		jLabel6.setText("Woonplaats");

		jLabel7.setText("Adres");

		jLabel8.setText("Postcode");

		jLabel9.setText("TelefoonNr");

		jLabel10.setText("Praktijk");

		jLabel11.setText("BeginDatum");

		jLabel12.setText("BSN");
		
		setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
		
		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(jLabel12)
												.addComponent(jLabel1)
												.addComponent(jLabel2)
												.addComponent(jLabel3)
												.addComponent(
														nieuwopslaan,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														87,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel4)
												.addComponent(jLabel5)
												.addComponent(jLabel6)
												.addComponent(jLabel7)
												.addComponent(jLabel8)
												.addComponent(jLabel9)
												.addComponent(jLabel10)
												.addComponent(jLabel11))
								.addGap(42, 42, 42)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addComponent(
														nieuwannuleer,
														javax.swing.GroupLayout.Alignment.LEADING,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														96,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createSequentialGroup()
																.addComponent(
																		BeginDagField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		35,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		BeginMaandField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		BeginJaarField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																false)
																.addComponent(
																		PraktijkField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		0,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addComponent(
																		TelefoonNrField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		PostcodeField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		AdresField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		GeslachtField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addGroup(
																		javax.swing.GroupLayout.Alignment.LEADING,
																		layout.createSequentialGroup()
																				.addComponent(
																						DagField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						35,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addPreferredGap(
																						javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																				.addComponent(
																						MaandField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addPreferredGap(
																						javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																				.addComponent(
																						JaarField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addComponent(
																		TussenvoegselField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																	.addComponent(
																		BsnField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		95,
																		Short.MAX_VALUE)
																.addComponent(
																		VoornaamField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		95,
																		Short.MAX_VALUE)
																.addComponent(
																		AchternaamField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		WoonplaatsField,
																		javax.swing.GroupLayout.Alignment.LEADING)))
								.addContainerGap(28, Short.MAX_VALUE)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel12)
												.addComponent(
														BsnField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel1)
												.addComponent(
														VoornaamField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														TussenvoegselField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel2))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														AchternaamField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel3))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														DagField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														MaandField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														JaarField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel4))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														GeslachtField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel5))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														WoonplaatsField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel6))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														AdresField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel7))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														PostcodeField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel8))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														TelefoonNrField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel9))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														PraktijkField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel10))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														BeginDagField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														BeginMaandField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														BeginJaarField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel11))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(nieuwopslaan)
												.addComponent(nieuwannuleer))
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		pack();

	}

	private void initComponentswijzigen() {

		jLabel1 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		VoornaamField = new javax.swing.JTextField();
		TussenvoegselField = new javax.swing.JTextField();
		AchternaamField = new javax.swing.JTextField();
		jScrollPane1 = new javax.swing.JScrollPane();
		jList1 = new javax.swing.JList();
		DagField = new javax.swing.JComboBox();
		MaandField = new javax.swing.JComboBox();
		JaarField = new javax.swing.JComboBox();
		GeslachtField = new javax.swing.JComboBox();
		WoonplaatsField = new javax.swing.JTextField();
		AdresField = new javax.swing.JTextField();
		PostcodeField = new javax.swing.JTextField();
		TelefoonNrField = new javax.swing.JTextField();
		BsnField = new javax.swing.JTextField();
		PraktijkField = new javax.swing.JComboBox();
		BeginDagField = new javax.swing.JComboBox();
		BeginMaandField = new javax.swing.JComboBox();
		BeginJaarField = new javax.swing.JComboBox();
		wijzigopslaan = new javax.swing.JButton();
		wijzigannuleer = new javax.swing.JButton();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		
		for (int i = 0; i < 31; i++) {
			dagen[i] = "" + (i + 1);
		}
		for (int i = 0; i < 12; i++) {
			maanden[i] = "" + (i + 1);
		}
		for (int i = 0; i < 100; i++) {
			jaren[i] = "" + (i + 1920);
		}
		for (int i = 0; i < 5; i++) {
			beginjaren[i] = "" + (i + 2011);
		}

		jLabel1.setText("Voornaam");

		jLabel2.setText("Tussenvoegsel");

		jLabel3.setText("Achternaam");

		jList1.setModel(new javax.swing.AbstractListModel() {
			String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4",
					"Item 5" };

			public int getSize() {
				return strings.length;
			}

			public Object getElementAt(int i) {
				return strings[i];
			}
		});

		jScrollPane1.setViewportView(jList1);

		DagField.setModel(new javax.swing.DefaultComboBoxModel(dagen));

		MaandField.setModel(new javax.swing.DefaultComboBoxModel(maanden));

		JaarField.setModel(new javax.swing.DefaultComboBoxModel(jaren));

		GeslachtField.setModel(new javax.swing.DefaultComboBoxModel(
				new String[] { "Man", "Vrouw" }));

		PraktijkField
				.setModel(new javax.swing.DefaultComboBoxModel(praktijken));

		BeginDagField.setModel(new javax.swing.DefaultComboBoxModel(dagen));

		BeginMaandField.setModel(new javax.swing.DefaultComboBoxModel(maanden));

		BeginJaarField
				.setModel(new javax.swing.DefaultComboBoxModel(beginjaren));

		wijzigopslaan.setText("Wijzigen");
		wijzigopslaan.setActionCommand("wijzigopslaan");

		wijzigannuleer.setText("annuleer");
		wijzigannuleer.setActionCommand("wijzigannuleer");
		jLabel4.setText("Geboortedatum");

		jLabel5.setText("Geslacht");

		jLabel6.setText("Woonplaats");

		jLabel7.setText("Adres");

		jLabel8.setText("Postcode");

		jLabel9.setText("TelefoonNr");

		jLabel10.setText("Praktijk");

		jLabel11.setText("BeginDatum");

		jLabel12.setText("BSN");
		
		setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
		
		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(jLabel12)
												.addComponent(jLabel1)
												.addComponent(jLabel2)
												.addComponent(jLabel3)
												.addComponent(
														wijzigopslaan,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														87,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel4)
												.addComponent(jLabel5)
												.addComponent(jLabel6)
												.addComponent(jLabel7)
												.addComponent(jLabel8)
												.addComponent(jLabel9)
												.addComponent(jLabel10)
												.addComponent(jLabel11))
								.addGap(42, 42, 42)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addComponent(
														wijzigannuleer,
														javax.swing.GroupLayout.Alignment.LEADING,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														96,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createSequentialGroup()
																.addComponent(
																		BeginDagField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		35,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		BeginMaandField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addComponent(
																		BeginJaarField,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(
														javax.swing.GroupLayout.Alignment.LEADING,
														layout.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING,
																false)
																.addComponent(
																		PraktijkField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		0,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addComponent(
																		TelefoonNrField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		PostcodeField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		AdresField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		GeslachtField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addGroup(
																		javax.swing.GroupLayout.Alignment.LEADING,
																		layout.createSequentialGroup()
																				.addComponent(
																						DagField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						35,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addPreferredGap(
																						javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																				.addComponent(
																						MaandField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addPreferredGap(
																						javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																				.addComponent(
																						JaarField,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addComponent(
																		TussenvoegselField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																	.addComponent(
																		BsnField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		95,
																		Short.MAX_VALUE)
																.addComponent(
																		VoornaamField,
																		javax.swing.GroupLayout.Alignment.LEADING,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		95,
																		Short.MAX_VALUE)
																.addComponent(
																		AchternaamField,
																		javax.swing.GroupLayout.Alignment.LEADING)
																.addComponent(
																		WoonplaatsField,
																		javax.swing.GroupLayout.Alignment.LEADING)))
								.addContainerGap(28, Short.MAX_VALUE)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel12)
												.addComponent(
														BsnField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(jLabel1)
												.addComponent(
														VoornaamField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														TussenvoegselField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel2))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														AchternaamField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel3))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														DagField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														MaandField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														JaarField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel4))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														GeslachtField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel5))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														WoonplaatsField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel6))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														AdresField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel7))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														PostcodeField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel8))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														TelefoonNrField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel9))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														PraktijkField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel10))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														BeginDagField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														BeginMaandField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														BeginJaarField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(jLabel11))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(wijzigopslaan)
												.addComponent(wijzigannuleer))
								.addContainerGap(
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));
		pack();

	}

	
	private void initComponentsverwijder() {

		verwijderja = new javax.swing.JButton();
		jLabel1 = new javax.swing.JLabel();
		verwijdernee = new javax.swing.JButton();
		therapeutnaam = new javax.swing.JLabel();

		setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);

		verwijderja.setText("Ja");
		verwijderja.setActionCommand("verwijderja");
		jLabel1.setText("Weet u zeker dat u deze therapeut wilt verwijderen?");

		verwijdernee.setText("annuleer");
		verwijdernee.setActionCommand("verwijdernee");
		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addContainerGap()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						jLabel1)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addComponent(
																										verwijderja,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										82,
																										javax.swing.GroupLayout.PREFERRED_SIZE)
																								.addPreferredGap(
																										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																										83,
																										Short.MAX_VALUE)
																								.addComponent(
																										verwijdernee))))
												.addGroup(
														layout.createSequentialGroup()
																.addGap(57, 57,
																		57)
																.addComponent(
																		therapeutnaam,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		134,
																		javax.swing.GroupLayout.PREFERRED_SIZE)))
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(therapeutnaam,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										17,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabel1)
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(verwijderja)
												.addComponent(verwijdernee))
								.addContainerGap(25, Short.MAX_VALUE)));

		pack();
	}
	public void nieuwSetListener(ActionListener listener) {
		nieuwopslaan.addActionListener(listener);
		nieuwannuleer.addActionListener(listener);
	}

	public void wijzigSetListener(ActionListener listener) {
		wijzigopslaan.addActionListener(listener);
		wijzigannuleer.addActionListener(listener);
	}

	public void verwijderSetListener(ActionListener listener) {
	verwijderja.addActionListener(listener);
	verwijdernee.addActionListener(listener);
	}

	public String getAchternaamField() {
		return AchternaamField.getText();
	}

	public void setAchternaamField(String achternaamField) {
		AchternaamField.setText(achternaamField);
	}

	public String getAdresField() {
		return AdresField.getText();
	}

	public void setAdresField(String adresField) {
		AdresField.setText(adresField);
	}

	public int getBeginDagField() {
		int beginDag;
		beginDag = Integer.parseInt(BeginDagField.getSelectedItem().toString());		
		return beginDag;
	}

	public void setBeginDagField(int BeginDag) {
		
		BeginDagField.setSelectedIndex(BeginDag - 1);
	}

	public int getBeginJaarField() {
		int beginJaar;
		beginJaar = Integer.parseInt(BeginJaarField.getSelectedItem().toString());		
		return beginJaar;		
	}

	public void setBeginJaarField(int beginJaar) {
		BeginJaarField.setSelectedIndex(beginJaar -2011 );
	}

	public int getBeginMaandField() {
		int beginMaand;
		beginMaand = Integer.parseInt(BeginMaandField.getSelectedItem().toString());		
		return beginMaand;
		
	}

	public void setBeginMaandField(int BeginMaand) {
		BeginMaandField.setSelectedIndex(BeginMaand -1);
	}

	public int getDagField() {
		int beginDag;
		beginDag = Integer.parseInt(DagField.getSelectedItem().toString());		
		return beginDag;
	
	}

	public void setDagField(int dag) {
		DagField.setSelectedIndex(dag -1 );
	}

	public String getGeslachtField() {
		return GeslachtField.getSelectedItem().toString();
	}

	public void setGeslachtField(int geslachtField) {
		GeslachtField.setSelectedIndex(geslachtField);
	}

	public int getJaarField() {
		int jaar;
		jaar = Integer.parseInt(JaarField.getSelectedItem().toString());		
		return jaar;
				
	}

	public void setJaarField(int jaar) {
		JaarField.setSelectedIndex(jaar -1920);
	}

	public int getMaandField() {
		int maand;
		maand = Integer.parseInt(MaandField.getSelectedItem().toString());		
		return maand;
	
	}

	public void setMaandField(int maand) {
		MaandField.setSelectedIndex(maand - 1);
	}

	public String getPostcodeField() {
		return PostcodeField.getText();
	}

	public void setPostcodeField(String postcodeField) {
		PostcodeField.setText(postcodeField);
	}

	public String getPraktijkField() {
		return PraktijkField.getSelectedItem().toString();
	}
	public void setBsnField(String postcodeField) {
		BsnField.setText(postcodeField);
	}

	public String getBsnField() {
		return BsnField.getText();
	}

	public void setPraktijkField(int  praktijk) {
		PraktijkField.setSelectedIndex(praktijk);
	}

	public String getTelefoonNrField() {
		return TelefoonNrField.getText();
	}

	public void setTelefoonNrField(String telefoonNrField) {
		TelefoonNrField.setText(telefoonNrField);
	}

	public String getTussenvoegselField() {
		return TussenvoegselField.getText();
	}

	public void setTussenvoegselField(String tussenvoegselField) {
		TussenvoegselField.setText(tussenvoegselField);
	}

	public String getVoornaamField() {
		return VoornaamField.getText();
	}

	public void setVoornaamField(String voornaamField) {
		VoornaamField.setText(voornaamField);
	}

	public String getWoonplaatsField() {
		return WoonplaatsField.getText();
	}

	public void setWoonplaatsField(String woonplaatsField) {
		WoonplaatsField.setText(woonplaatsField);
	}

}
